package com.usian.article.controller;

import com.usian.article.ApArticleContentControllerApi;
import com.usian.article.service.ApArticleContentService;
import com.usian.model.article.pojos.ApArticleContent;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/articleContent")
public class ApArticleContentController implements ApArticleContentControllerApi {

    @Autowired
    private ApArticleContentService ApArticleContentService;

    /**
     * admin 远程调用保存文章主表
     * @param apArticleContent
     * @return
     */
    @Override
    @RequestMapping("/saveApArticleContent")
    public ApArticleContent saveApArticleContent(@RequestBody ApArticleContent apArticleContent) {
        return ApArticleContentService.saveApArticleContent(apArticleContent);
    }

    @Override
    public ResponseResult saveArticleContent(ApArticleContent apArticleContent) {
        return null;
    }

}
